//
//  WSSelectBandCell.m
//  FD
//
//  Created by xiaofang wang on 2018/11/7.
//  Copyright © 2018年 ZhiYuan Network. All rights reserved.
//

#import "WSSelectBandCell.h"

@implementation WSSelectBandCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:reuseIdentifier];
    
    if (self) {
        [self setupView];
    }
    return self;
}
- (void)setupView {
    [self.contentView addSubview:self.bankLb];
}

//没给frame 肯定出不来
- (void)layoutSubviews {
    [super layoutSubviews];
    
    [self.bankLb mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.contentView.mas_right).offset(-10);
        make.centerY.equalTo(self.contentView.mas_centerY);
        make.size.mas_equalTo(CGSizeMake(160, 22));
    }];
}

- (UILabel *)bankLb {
    if (!_bankLb) {
        _bankLb = [UILabel new];
        _bankLb.textAlignment = NSTextAlignmentRight;
    }
    return _bankLb;
}




@end
